package com.zhiyou100.loans.servlet.refund;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.zhiyou100.loans.service.RefundbillService;
import com.zhiyou100.loans.service.impl.RefundbillServiceImpl;

import net.sf.json.JSONObject;

@WebServlet("/RefundbillAddServlet")
public class RefundbillAddServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String lbid = request.getParameter("id");//借款单id
		RefundbillService rs = new RefundbillServiceImpl();
		JSONObject result=rs.add(lbid);
		response.getWriter().println(result);
	}

}
